/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package app;

import GUI.AppFrame;

import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javabluetoothserial.JavaBluetoothSerial;
import javax.bluetooth.BluetoothStateException;
import javax.bluetooth.LocalDevice;
import javax.swing.*;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

/**
 *
 * @author isen
 */
public class BluetoothComApp {
    int currentSpeed;
    public void speedChanged(){
        
    }
    
    public BluetoothComApp(){
        //display local device address and name
        LocalDevice localDevice = null;
        String localMac;
        try {
            localDevice = LocalDevice.getLocalDevice();
        } catch (BluetoothStateException ex) {
            Logger.getLogger(BluetoothComApp.class.getName()).log(Level.SEVERE, null, ex);
        }
        localMac = localDevice.getBluetoothAddress();
        System.out.println("Address: "+localMac);
        
        //AppFrame frame = new AppFrame();
        FrameController control = new FrameController();
        
        //init the bluetooth server
        //JavaBluetoothSerial server=new JavaBluetoothSerial(new FrameController(frame));
        
        
        
    }
    
    
    
    
     public static void main(String[] args) throws IOException {
        BluetoothComApp app = new BluetoothComApp();
        
        
    }
    
    
}
